* {
  margin: 0;
  padding: 0;
}
ul {
  width: 300px;
  margin: 100px auto;
  list-style: none;
}
ul li {
  height: 30px;
  line-height: 30px;
  padding-left: 20px;
}
ul li:nth-child(2n+1) {
  background: yellow;
}
ul li:nth-child(2n) {
  background: skyblue;
}
ul li:hover {
  background: hotpink;
  color: white;
  font-weight: bold;
}
